package Test.test4.exam3;

import java.io.IOException;
import java.net.Socket;

public class exam3 {
    public static void main(String[] args) throws IOException {
        Socket s = new Socket("127.0.0.1",8888);//连接客户端
        ClientTest ct = new ClientTest(s);
        Thread send = ct.send();//创建发送消息线程
        Thread receive = ct.receive();//创建接收消息线程
        receive.start();//启动接收消息线程
        send.start();//启动发送消息线程


    }
}
